<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>贪吃蛇</title>
</head>
<body>
    <div class="main">
        <!-- 游戏主体 -->
        <div class="game-box">
            <!-- 蛇身 -->
            <div id="snake">
                <!-- 蛇神细节 -->
                <div id="child"></div>
            </div>
            <!-- 食物 -->
            <div id="food"></div>
        </div>
        

        <!-- 游戏信息展示 -->
        <div class="game-info">
            <div class="info-score">
              score:<span id="score">0</span>
            </div>
            <button id="reset">初始化</button>
            <div class="info-level">
                level:<span id="level">1</span>
            </div>
        </div>
    </div>
</body>
</html>